package com.sufen.common.request;

import java.util.Map;

/**
 * @description:
 * @function: 接受前端传递过来的参数，conditions用来接收select,delete操作中需要的条件，
 * datas用来接受insert、update操作中需要的信息
 * @author: Liu Menglei
 * @Date: 2021/12/1 0002 09:54
 */
public class RequestParms {
    private int page;
    private int size;
    private Map<String,Object> conditions;
    private Map<String,Object> datas;

    public Map<String, Object> getConditions() {
        return conditions;
    }

    public void setConditions(Map<String, Object> conditions) {
        this.conditions = conditions;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Map<String, Object> getDatas() {
        return datas;
    }

    public void setDatas(Map<String, Object> datas) {
        this.datas = datas;
    }

    @Override
    public String toString() {
        return "RequestParms{" +
                "page=" + page +
                ", size=" + size +
                ", conditions=" + conditions +
                ", datas=" + datas +
                '}';
    }
}